package com.mydemo.thread;

/**
 * <p></p >
 *
 * @author liming1
 * @version $Id: JoinTest, v1.0 2019-09-17 10:56 liming1 Exp $
 */
public class JoinTest {

    public static void main(String[] args) throws InterruptedException {
        Thread t1 = new Thread(new JoinThread("T1"));
        Thread t2 = new Thread(new JoinThread("T2"));
        Thread t3 = new Thread(new JoinThread("T3"));
        t1.start();
        t2.start();
        t3.start();
//        t1.join();
//        t2.join();
//        t3.join();
        Thread.yield();
        System.out.println("结束了");
    }
}
